package cn.baimo.service.serviceImpl;

import cn.baimo.mapper.DivisionMapper;
import cn.baimo.mapper.DoctorMapper;
import cn.baimo.pojo.Doctor;
import cn.baimo.pojo.Hospital;
import cn.baimo.service.DoctorService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class DoctorServiceImpl implements DoctorService {
    @Autowired
    private DoctorMapper doctorMapper;
    @Override
    public List<Doctor> selectHotDoctor() {
        return doctorMapper.selectHotDoctor();
    }

    @Override
    public int selectDoctorTotalNum() {
        return doctorMapper.selectDoctorTotalNum();
    }

    @Override
    public List<Doctor> selectDoctorsByDoctor(Doctor doctor, String diName, Hospital hospital) {
        return doctorMapper.selectDoctorsByDoctor(doctor,diName,hospital);
    }
}
